package com.zhongwang.mms.gen.entity;

import java.util.ArrayList;
import java.util.List;

public class TWarehouseInfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TWarehouseInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andWhiIdIsNull() {
            addCriterion("whi_id is null");
            return (Criteria) this;
        }

        public Criteria andWhiIdIsNotNull() {
            addCriterion("whi_id is not null");
            return (Criteria) this;
        }

        public Criteria andWhiIdEqualTo(Integer value) {
            addCriterion("whi_id =", value, "whiId");
            return (Criteria) this;
        }

        public Criteria andWhiIdNotEqualTo(Integer value) {
            addCriterion("whi_id <>", value, "whiId");
            return (Criteria) this;
        }

        public Criteria andWhiIdGreaterThan(Integer value) {
            addCriterion("whi_id >", value, "whiId");
            return (Criteria) this;
        }

        public Criteria andWhiIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("whi_id >=", value, "whiId");
            return (Criteria) this;
        }

        public Criteria andWhiIdLessThan(Integer value) {
            addCriterion("whi_id <", value, "whiId");
            return (Criteria) this;
        }

        public Criteria andWhiIdLessThanOrEqualTo(Integer value) {
            addCriterion("whi_id <=", value, "whiId");
            return (Criteria) this;
        }

        public Criteria andWhiIdIn(List<Integer> values) {
            addCriterion("whi_id in", values, "whiId");
            return (Criteria) this;
        }

        public Criteria andWhiIdNotIn(List<Integer> values) {
            addCriterion("whi_id not in", values, "whiId");
            return (Criteria) this;
        }

        public Criteria andWhiIdBetween(Integer value1, Integer value2) {
            addCriterion("whi_id between", value1, value2, "whiId");
            return (Criteria) this;
        }

        public Criteria andWhiIdNotBetween(Integer value1, Integer value2) {
            addCriterion("whi_id not between", value1, value2, "whiId");
            return (Criteria) this;
        }

        public Criteria andWhiCodeIsNull() {
            addCriterion("whi_code is null");
            return (Criteria) this;
        }

        public Criteria andWhiCodeIsNotNull() {
            addCriterion("whi_code is not null");
            return (Criteria) this;
        }

        public Criteria andWhiCodeEqualTo(String value) {
            addCriterion("whi_code =", value, "whiCode");
            return (Criteria) this;
        }

        public Criteria andWhiCodeNotEqualTo(String value) {
            addCriterion("whi_code <>", value, "whiCode");
            return (Criteria) this;
        }

        public Criteria andWhiCodeGreaterThan(String value) {
            addCriterion("whi_code >", value, "whiCode");
            return (Criteria) this;
        }

        public Criteria andWhiCodeGreaterThanOrEqualTo(String value) {
            addCriterion("whi_code >=", value, "whiCode");
            return (Criteria) this;
        }

        public Criteria andWhiCodeLessThan(String value) {
            addCriterion("whi_code <", value, "whiCode");
            return (Criteria) this;
        }

        public Criteria andWhiCodeLessThanOrEqualTo(String value) {
            addCriterion("whi_code <=", value, "whiCode");
            return (Criteria) this;
        }

        public Criteria andWhiCodeLike(String value) {
            addCriterion("whi_code like", value, "whiCode");
            return (Criteria) this;
        }

        public Criteria andWhiCodeNotLike(String value) {
            addCriterion("whi_code not like", value, "whiCode");
            return (Criteria) this;
        }

        public Criteria andWhiCodeIn(List<String> values) {
            addCriterion("whi_code in", values, "whiCode");
            return (Criteria) this;
        }

        public Criteria andWhiCodeNotIn(List<String> values) {
            addCriterion("whi_code not in", values, "whiCode");
            return (Criteria) this;
        }

        public Criteria andWhiCodeBetween(String value1, String value2) {
            addCriterion("whi_code between", value1, value2, "whiCode");
            return (Criteria) this;
        }

        public Criteria andWhiCodeNotBetween(String value1, String value2) {
            addCriterion("whi_code not between", value1, value2, "whiCode");
            return (Criteria) this;
        }

        public Criteria andWhiNameIsNull() {
            addCriterion("whi_name is null");
            return (Criteria) this;
        }

        public Criteria andWhiNameIsNotNull() {
            addCriterion("whi_name is not null");
            return (Criteria) this;
        }

        public Criteria andWhiNameEqualTo(String value) {
            addCriterion("whi_name =", value, "whiName");
            return (Criteria) this;
        }

        public Criteria andWhiNameNotEqualTo(String value) {
            addCriterion("whi_name <>", value, "whiName");
            return (Criteria) this;
        }

        public Criteria andWhiNameGreaterThan(String value) {
            addCriterion("whi_name >", value, "whiName");
            return (Criteria) this;
        }

        public Criteria andWhiNameGreaterThanOrEqualTo(String value) {
            addCriterion("whi_name >=", value, "whiName");
            return (Criteria) this;
        }

        public Criteria andWhiNameLessThan(String value) {
            addCriterion("whi_name <", value, "whiName");
            return (Criteria) this;
        }

        public Criteria andWhiNameLessThanOrEqualTo(String value) {
            addCriterion("whi_name <=", value, "whiName");
            return (Criteria) this;
        }

        public Criteria andWhiNameLike(String value) {
            addCriterion("whi_name like", value, "whiName");
            return (Criteria) this;
        }

        public Criteria andWhiNameNotLike(String value) {
            addCriterion("whi_name not like", value, "whiName");
            return (Criteria) this;
        }

        public Criteria andWhiNameIn(List<String> values) {
            addCriterion("whi_name in", values, "whiName");
            return (Criteria) this;
        }

        public Criteria andWhiNameNotIn(List<String> values) {
            addCriterion("whi_name not in", values, "whiName");
            return (Criteria) this;
        }

        public Criteria andWhiNameBetween(String value1, String value2) {
            addCriterion("whi_name between", value1, value2, "whiName");
            return (Criteria) this;
        }

        public Criteria andWhiNameNotBetween(String value1, String value2) {
            addCriterion("whi_name not between", value1, value2, "whiName");
            return (Criteria) this;
        }

        public Criteria andWhiAddressIsNull() {
            addCriterion("whi_address is null");
            return (Criteria) this;
        }

        public Criteria andWhiAddressIsNotNull() {
            addCriterion("whi_address is not null");
            return (Criteria) this;
        }

        public Criteria andWhiAddressEqualTo(String value) {
            addCriterion("whi_address =", value, "whiAddress");
            return (Criteria) this;
        }

        public Criteria andWhiAddressNotEqualTo(String value) {
            addCriterion("whi_address <>", value, "whiAddress");
            return (Criteria) this;
        }

        public Criteria andWhiAddressGreaterThan(String value) {
            addCriterion("whi_address >", value, "whiAddress");
            return (Criteria) this;
        }

        public Criteria andWhiAddressGreaterThanOrEqualTo(String value) {
            addCriterion("whi_address >=", value, "whiAddress");
            return (Criteria) this;
        }

        public Criteria andWhiAddressLessThan(String value) {
            addCriterion("whi_address <", value, "whiAddress");
            return (Criteria) this;
        }

        public Criteria andWhiAddressLessThanOrEqualTo(String value) {
            addCriterion("whi_address <=", value, "whiAddress");
            return (Criteria) this;
        }

        public Criteria andWhiAddressLike(String value) {
            addCriterion("whi_address like", value, "whiAddress");
            return (Criteria) this;
        }

        public Criteria andWhiAddressNotLike(String value) {
            addCriterion("whi_address not like", value, "whiAddress");
            return (Criteria) this;
        }

        public Criteria andWhiAddressIn(List<String> values) {
            addCriterion("whi_address in", values, "whiAddress");
            return (Criteria) this;
        }

        public Criteria andWhiAddressNotIn(List<String> values) {
            addCriterion("whi_address not in", values, "whiAddress");
            return (Criteria) this;
        }

        public Criteria andWhiAddressBetween(String value1, String value2) {
            addCriterion("whi_address between", value1, value2, "whiAddress");
            return (Criteria) this;
        }

        public Criteria andWhiAddressNotBetween(String value1, String value2) {
            addCriterion("whi_address not between", value1, value2, "whiAddress");
            return (Criteria) this;
        }

        public Criteria andWhiRemarkIsNull() {
            addCriterion("whi_remark is null");
            return (Criteria) this;
        }

        public Criteria andWhiRemarkIsNotNull() {
            addCriterion("whi_remark is not null");
            return (Criteria) this;
        }

        public Criteria andWhiRemarkEqualTo(String value) {
            addCriterion("whi_remark =", value, "whiRemark");
            return (Criteria) this;
        }

        public Criteria andWhiRemarkNotEqualTo(String value) {
            addCriterion("whi_remark <>", value, "whiRemark");
            return (Criteria) this;
        }

        public Criteria andWhiRemarkGreaterThan(String value) {
            addCriterion("whi_remark >", value, "whiRemark");
            return (Criteria) this;
        }

        public Criteria andWhiRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("whi_remark >=", value, "whiRemark");
            return (Criteria) this;
        }

        public Criteria andWhiRemarkLessThan(String value) {
            addCriterion("whi_remark <", value, "whiRemark");
            return (Criteria) this;
        }

        public Criteria andWhiRemarkLessThanOrEqualTo(String value) {
            addCriterion("whi_remark <=", value, "whiRemark");
            return (Criteria) this;
        }

        public Criteria andWhiRemarkLike(String value) {
            addCriterion("whi_remark like", value, "whiRemark");
            return (Criteria) this;
        }

        public Criteria andWhiRemarkNotLike(String value) {
            addCriterion("whi_remark not like", value, "whiRemark");
            return (Criteria) this;
        }

        public Criteria andWhiRemarkIn(List<String> values) {
            addCriterion("whi_remark in", values, "whiRemark");
            return (Criteria) this;
        }

        public Criteria andWhiRemarkNotIn(List<String> values) {
            addCriterion("whi_remark not in", values, "whiRemark");
            return (Criteria) this;
        }

        public Criteria andWhiRemarkBetween(String value1, String value2) {
            addCriterion("whi_remark between", value1, value2, "whiRemark");
            return (Criteria) this;
        }

        public Criteria andWhiRemarkNotBetween(String value1, String value2) {
            addCriterion("whi_remark not between", value1, value2, "whiRemark");
            return (Criteria) this;
        }

        public Criteria andWhiTypeIsNull() {
            addCriterion("whi_type is null");
            return (Criteria) this;
        }

        public Criteria andWhiTypeIsNotNull() {
            addCriterion("whi_type is not null");
            return (Criteria) this;
        }

        public Criteria andWhiTypeEqualTo(String value) {
            addCriterion("whi_type =", value, "whiType");
            return (Criteria) this;
        }

        public Criteria andWhiTypeNotEqualTo(String value) {
            addCriterion("whi_type <>", value, "whiType");
            return (Criteria) this;
        }

        public Criteria andWhiTypeGreaterThan(String value) {
            addCriterion("whi_type >", value, "whiType");
            return (Criteria) this;
        }

        public Criteria andWhiTypeGreaterThanOrEqualTo(String value) {
            addCriterion("whi_type >=", value, "whiType");
            return (Criteria) this;
        }

        public Criteria andWhiTypeLessThan(String value) {
            addCriterion("whi_type <", value, "whiType");
            return (Criteria) this;
        }

        public Criteria andWhiTypeLessThanOrEqualTo(String value) {
            addCriterion("whi_type <=", value, "whiType");
            return (Criteria) this;
        }

        public Criteria andWhiTypeLike(String value) {
            addCriterion("whi_type like", value, "whiType");
            return (Criteria) this;
        }

        public Criteria andWhiTypeNotLike(String value) {
            addCriterion("whi_type not like", value, "whiType");
            return (Criteria) this;
        }

        public Criteria andWhiTypeIn(List<String> values) {
            addCriterion("whi_type in", values, "whiType");
            return (Criteria) this;
        }

        public Criteria andWhiTypeNotIn(List<String> values) {
            addCriterion("whi_type not in", values, "whiType");
            return (Criteria) this;
        }

        public Criteria andWhiTypeBetween(String value1, String value2) {
            addCriterion("whi_type between", value1, value2, "whiType");
            return (Criteria) this;
        }

        public Criteria andWhiTypeNotBetween(String value1, String value2) {
            addCriterion("whi_type not between", value1, value2, "whiType");
            return (Criteria) this;
        }

        public Criteria andWhiOrderNoIsNull() {
            addCriterion("whi_order_no is null");
            return (Criteria) this;
        }

        public Criteria andWhiOrderNoIsNotNull() {
            addCriterion("whi_order_no is not null");
            return (Criteria) this;
        }

        public Criteria andWhiOrderNoEqualTo(Integer value) {
            addCriterion("whi_order_no =", value, "whiOrderNo");
            return (Criteria) this;
        }

        public Criteria andWhiOrderNoNotEqualTo(Integer value) {
            addCriterion("whi_order_no <>", value, "whiOrderNo");
            return (Criteria) this;
        }

        public Criteria andWhiOrderNoGreaterThan(Integer value) {
            addCriterion("whi_order_no >", value, "whiOrderNo");
            return (Criteria) this;
        }

        public Criteria andWhiOrderNoGreaterThanOrEqualTo(Integer value) {
            addCriterion("whi_order_no >=", value, "whiOrderNo");
            return (Criteria) this;
        }

        public Criteria andWhiOrderNoLessThan(Integer value) {
            addCriterion("whi_order_no <", value, "whiOrderNo");
            return (Criteria) this;
        }

        public Criteria andWhiOrderNoLessThanOrEqualTo(Integer value) {
            addCriterion("whi_order_no <=", value, "whiOrderNo");
            return (Criteria) this;
        }

        public Criteria andWhiOrderNoIn(List<Integer> values) {
            addCriterion("whi_order_no in", values, "whiOrderNo");
            return (Criteria) this;
        }

        public Criteria andWhiOrderNoNotIn(List<Integer> values) {
            addCriterion("whi_order_no not in", values, "whiOrderNo");
            return (Criteria) this;
        }

        public Criteria andWhiOrderNoBetween(Integer value1, Integer value2) {
            addCriterion("whi_order_no between", value1, value2, "whiOrderNo");
            return (Criteria) this;
        }

        public Criteria andWhiOrderNoNotBetween(Integer value1, Integer value2) {
            addCriterion("whi_order_no not between", value1, value2, "whiOrderNo");
            return (Criteria) this;
        }

        public Criteria andWhiPidIsNull() {
            addCriterion("whi_pid is null");
            return (Criteria) this;
        }

        public Criteria andWhiPidIsNotNull() {
            addCriterion("whi_pid is not null");
            return (Criteria) this;
        }

        public Criteria andWhiPidEqualTo(Integer value) {
            addCriterion("whi_pid =", value, "whiPid");
            return (Criteria) this;
        }

        public Criteria andWhiPidNotEqualTo(Integer value) {
            addCriterion("whi_pid <>", value, "whiPid");
            return (Criteria) this;
        }

        public Criteria andWhiPidGreaterThan(Integer value) {
            addCriterion("whi_pid >", value, "whiPid");
            return (Criteria) this;
        }

        public Criteria andWhiPidGreaterThanOrEqualTo(Integer value) {
            addCriterion("whi_pid >=", value, "whiPid");
            return (Criteria) this;
        }

        public Criteria andWhiPidLessThan(Integer value) {
            addCriterion("whi_pid <", value, "whiPid");
            return (Criteria) this;
        }

        public Criteria andWhiPidLessThanOrEqualTo(Integer value) {
            addCriterion("whi_pid <=", value, "whiPid");
            return (Criteria) this;
        }

        public Criteria andWhiPidIn(List<Integer> values) {
            addCriterion("whi_pid in", values, "whiPid");
            return (Criteria) this;
        }

        public Criteria andWhiPidNotIn(List<Integer> values) {
            addCriterion("whi_pid not in", values, "whiPid");
            return (Criteria) this;
        }

        public Criteria andWhiPidBetween(Integer value1, Integer value2) {
            addCriterion("whi_pid between", value1, value2, "whiPid");
            return (Criteria) this;
        }

        public Criteria andWhiPidNotBetween(Integer value1, Integer value2) {
            addCriterion("whi_pid not between", value1, value2, "whiPid");
            return (Criteria) this;
        }

        public Criteria andWhiStatusIsNull() {
            addCriterion("whi_status is null");
            return (Criteria) this;
        }

        public Criteria andWhiStatusIsNotNull() {
            addCriterion("whi_status is not null");
            return (Criteria) this;
        }

        public Criteria andWhiStatusEqualTo(Integer value) {
            addCriterion("whi_status =", value, "whiStatus");
            return (Criteria) this;
        }

        public Criteria andWhiStatusNotEqualTo(Integer value) {
            addCriterion("whi_status <>", value, "whiStatus");
            return (Criteria) this;
        }

        public Criteria andWhiStatusGreaterThan(Integer value) {
            addCriterion("whi_status >", value, "whiStatus");
            return (Criteria) this;
        }

        public Criteria andWhiStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("whi_status >=", value, "whiStatus");
            return (Criteria) this;
        }

        public Criteria andWhiStatusLessThan(Integer value) {
            addCriterion("whi_status <", value, "whiStatus");
            return (Criteria) this;
        }

        public Criteria andWhiStatusLessThanOrEqualTo(Integer value) {
            addCriterion("whi_status <=", value, "whiStatus");
            return (Criteria) this;
        }

        public Criteria andWhiStatusIn(List<Integer> values) {
            addCriterion("whi_status in", values, "whiStatus");
            return (Criteria) this;
        }

        public Criteria andWhiStatusNotIn(List<Integer> values) {
            addCriterion("whi_status not in", values, "whiStatus");
            return (Criteria) this;
        }

        public Criteria andWhiStatusBetween(Integer value1, Integer value2) {
            addCriterion("whi_status between", value1, value2, "whiStatus");
            return (Criteria) this;
        }

        public Criteria andWhiStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("whi_status not between", value1, value2, "whiStatus");
            return (Criteria) this;
        }

        public Criteria andWhiPurControllerTypeIsNull() {
            addCriterion("whi_pur_controller_type is null");
            return (Criteria) this;
        }

        public Criteria andWhiPurControllerTypeIsNotNull() {
            addCriterion("whi_pur_controller_type is not null");
            return (Criteria) this;
        }

        public Criteria andWhiPurControllerTypeEqualTo(String value) {
            addCriterion("whi_pur_controller_type =", value, "whiPurControllerType");
            return (Criteria) this;
        }

        public Criteria andWhiPurControllerTypeNotEqualTo(String value) {
            addCriterion("whi_pur_controller_type <>", value, "whiPurControllerType");
            return (Criteria) this;
        }

        public Criteria andWhiPurControllerTypeGreaterThan(String value) {
            addCriterion("whi_pur_controller_type >", value, "whiPurControllerType");
            return (Criteria) this;
        }

        public Criteria andWhiPurControllerTypeGreaterThanOrEqualTo(String value) {
            addCriterion("whi_pur_controller_type >=", value, "whiPurControllerType");
            return (Criteria) this;
        }

        public Criteria andWhiPurControllerTypeLessThan(String value) {
            addCriterion("whi_pur_controller_type <", value, "whiPurControllerType");
            return (Criteria) this;
        }

        public Criteria andWhiPurControllerTypeLessThanOrEqualTo(String value) {
            addCriterion("whi_pur_controller_type <=", value, "whiPurControllerType");
            return (Criteria) this;
        }

        public Criteria andWhiPurControllerTypeLike(String value) {
            addCriterion("whi_pur_controller_type like", value, "whiPurControllerType");
            return (Criteria) this;
        }

        public Criteria andWhiPurControllerTypeNotLike(String value) {
            addCriterion("whi_pur_controller_type not like", value, "whiPurControllerType");
            return (Criteria) this;
        }

        public Criteria andWhiPurControllerTypeIn(List<String> values) {
            addCriterion("whi_pur_controller_type in", values, "whiPurControllerType");
            return (Criteria) this;
        }

        public Criteria andWhiPurControllerTypeNotIn(List<String> values) {
            addCriterion("whi_pur_controller_type not in", values, "whiPurControllerType");
            return (Criteria) this;
        }

        public Criteria andWhiPurControllerTypeBetween(String value1, String value2) {
            addCriterion("whi_pur_controller_type between", value1, value2, "whiPurControllerType");
            return (Criteria) this;
        }

        public Criteria andWhiPurControllerTypeNotBetween(String value1, String value2) {
            addCriterion("whi_pur_controller_type not between", value1, value2, "whiPurControllerType");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}